<?php

namespace app\modules\film\service;

use Yii;
use app\common\behaviors\ApiCommonBehavior;
use app\common\base\ApiService;
use app\modules\film\models\FilmTicket;
use DateTime;
use PhpOffice\PhpSpreadsheet\Shared\Date;

class FilmTicketService extends ApiService
{
    function __construct()
    {
        parent::init();
        $this->model = new FilmTicket();
    }

    /**
     * 通过条件筛选;
     */
    public function getByCondition($condition){
        $init = [
            'status' => 1,
        ];
        $condition = array_merge($condition, $init);

        $info = $this->lists([
            'condition' => $condition,
        ]);


        return $info;
    }

}

